

class TeamMemberData {
  int? total;
  List<TeamMemberList>? list;

  TeamMemberData({this.total, this.list});

  TeamMemberData.fromJson(Map<String, dynamic> json) {
    if(json["total"] is int) {
      total = json["total"];
    }
    if(json["list"] is List) {
      list = json["list"] == null ? null : (json["list"] as List).map((e) => TeamMemberList.fromJson(e)).toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["total"] = total;
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class TeamMemberList {
  int? id;
  String? doctorNick;
  String? phone;
  String? doctorNo;
  int? title;
  String? gpFlag;
  String? profilePhoto;
  String? gender;
  String? realName;
  int? teamId;
  String? teamNo;
  int? isLeader;
  int? manageCount;

  TeamMemberList({this.id, this.doctorNick, this.phone, this.doctorNo, this.title, this.gpFlag, this.profilePhoto, this.gender, this.realName, this.teamId, this.teamNo, this.isLeader, this.manageCount});

  TeamMemberList.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["doctorNick"] is String) {
      doctorNick = json["doctorNick"];
    }
    if(json["phone"] is String) {
      phone = json["phone"];
    }
    if(json["doctorNo"] is String) {
      doctorNo = json["doctorNo"];
    }
    if(json["title"] is int) {
      title = json["title"];
    }
    if(json["gpFlag"] is String) {
      gpFlag = json["gpFlag"];
    }
    if(json["profilePhoto"] is String) {
      profilePhoto = json["profilePhoto"];
    }
    if(json["gender"] is String) {
      gender = json["gender"];
    }
    if(json["realName"] is String) {
      realName = json["realName"];
    }
    if(json["teamId"] is int) {
      teamId = json["teamId"];
    }
    if(json["teamNo"] is String) {
      teamNo = json["teamNo"];
    }
    if(json["isLeader"] is int) {
      isLeader = json["isLeader"];
    }
    if(json["manageCount"] is int) {
      manageCount = json["manageCount"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["doctorNick"] = doctorNick;
    _data["phone"] = phone;
    _data["doctorNo"] = doctorNo;
    _data["title"] = title;
    _data["gpFlag"] = gpFlag;
    _data["profilePhoto"] = profilePhoto;
    _data["gender"] = gender;
    _data["realName"] = realName;
    _data["teamId"] = teamId;
    _data["teamNo"] = teamNo;
    _data["isLeader"] = isLeader;
    _data["manageCount"] = manageCount;
    return _data;
  }
}